package org.springblade.modules.repair.controller;


import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.*;
import lombok.AllArgsConstructor;
import org.springblade.core.tool.api.R;
import org.springblade.modules.repair.service.IMaintainSignService;
import org.springblade.modules.repair.vo.*;
import org.springframework.web.bind.annotation.*;

/**
 * 当前用户任务任务签到签退情况校验
 * @author Sharry
 * @since 2023-11-22
 */

@RestController
@AllArgsConstructor
@RequestMapping("/check/plans")
@Api(tags = "当前用户任务任务签到签退情况校验Controller")
public class PlanSignCheckController {

	private final IMaintainSignService signService;

	@GetMapping("/isSignOut")
	@ApiOperation("根据当前工单，判断当前工单类型是否存在未签退任务")
	@ApiOperationSupport(order = 40)
	public R<PlanSignCheckVO> planSignOutCheck(Long planId){
		return R.data(signService.planSignOutCheck(planId));
	}

}
